import { DTREC_SET_DATA } from "../action/actionType";

export let dtrec = (state = {
    dtrecData: null
}, action) => {
    let { type } = action;
    let newState = { ...state };
    switch (type) {
        case DTREC_SET_DATA:
            newState.dtrecData = action.obj;
            return newState
            break;
        default:
            return newState
            break;
    }
}